define(['egis'], function (egis) {
    Window.deserializer = Window.deserializer || new egis.core.Deserializer();
    Window.container = Window.container || {};
    dsBridge.register('create_WCPSCallback', function (sourceId, plotLayerId, srid) {
        var restHttp = Window.container[http];
        var plotLayer = Window.container[plotLayerId];
        var wCPSCallback = new egis.ews.WCPSCallback({
            plotLayer: url,
            http: restHttp
        });
        /*wCPSCallback.onMemberJoined = function (member) {
            dsBridge.call("WCPSCallback_onMemberJoined", JSON.stringify(member));
        }

        wCPSCallback.onMemberLeaved =function (memberId) {
            dsBridge.call("WCPSCallback_onMemberLeaved", memberId);
        }

        wCPSCallback.onEnd =function () {
            dsBridge.call("WCPSCallback_onEnd");
        }

        wCPSCallback.onAdd =function (memberId, message) {
            dsBridge.call("WCPSCallback_onAdd",[memberId, JSON.stringify(message)]);
        }

        wCPSCallback.onUpdate =function (memberId, message) {
            dsBridge.call("WCPSCallback_onUpdate",[memberId, JSON.stringify(message)]);
        }

        wCPSCallback.onRemove =function (memberId, message) {
            dsBridge.call("WCPSCallback_onRemove",[memberId, JSON.stringify(message)]);
        }*/
        Window.container[sourceId] = wCPSCallback;
    })
})